package k.daniel.databindingdemo.model;

import java.util.ArrayList;
import java.util.List;

import k.daniel.databindingdemo.bean.UserBean;

/**
 * Created by daniel on 2016/4/28.
 */
public class UserModel {
    public List<UserBean> getUsers() {
        List<UserBean> userBeanList = new ArrayList<>();
        userBeanList.add(new UserBean("Jack", "Chen", 23, true));
        userBeanList.add(new UserBean("Daniel", "Zhao", 23, true));
        userBeanList.add(new UserBean("Harry", "X", 23, false));
        for (int i = 0; i < 30; i++) {
            userBeanList.add(new UserBean("Dan" + i, "Big" + i, i + 20, i % 2 == 0));
        }
        return userBeanList;
    }
}
